#include "HTTPServer.h"

#include <cassert>
#include <signal.h>
#include <stdlib.h>
HTTPServer server;

void handler(int sig)
{
    server.close();
    exit(0);
}

int main()
{
    signal(SIGKILL, handler);
    server.setLog(stderr);
    server.loadConf("server.conf");
    assert(server.setup(6060));
    assert(server.listen());
    return 0;
}
